import * as actionType from './actionType.js';

export default (state = {}, action) => {
      switch (action.type) {
            case actionType.LOGIN: {
                  return {...state,islogin: true}
            }
            case actionType.LOGOUT: {
                  return {
                      ...state, isLogin: false
                  }
            }
            default:
                  return state
      }
}